namespace TSL.BLL
{
    using System;
    using System.Collections.Generic;
    using System.Data;
    using TSL.DAL;
    using TSL.Model;

    public class Notice
    {
        private readonly TSL.DAL.Notice dal = new TSL.DAL.Notice();

        public void AddNotice(TSL.Model.Notice model)
        {
            this.dal.AddNotice(model);
        }

        public void Delete(string ID)
        {
            this.dal.Delete(ID);
        }

        public void DeleteNotice(string ID)
        {
            this.dal.DeleteNotice(ID);
        }

        public bool Exists(string name)
        {
            return this.dal.Exists(name);
        }

        public List<TSL.Model.Notice> GetListArray()
        {
            return this.dal.GetListArray("");
        }

        public List<TSL.Model.Notice> GetListArray(string strWhere)
        {
            return this.dal.GetListArray(strWhere);
        }

        public DataSet GetListFromView(string strWhere)
        {
            return this.dal.GetListFromView(strWhere);
        }

        public TSL.Model.Notice GetModel(string ID)
        {
            return this.dal.GetModel(ID);
        }

        public TSL.Model.Notice GetModel(string name, string password)
        {
            return this.dal.GetModel(name, password);
        }

        public DataSet GetNews(string strWhere)
        {
            return this.dal.GetNews(strWhere);
        }

        public DataSet GetNotice(string strWhere)
        {
            return this.dal.GetNotice(strWhere);
        }

        public void Update(TSL.Model.Notice model)
        {
            this.dal.Update(model);
        }
    }
}

